<?php
namespace app\admin\Validate;
use think\Validate;

class Video extends Validate{
    protected $rule=[
        'video_name'=>'require',
        'video_sort'=>'require|number',
        'video_url'=>'require|url',
        'video_pro_id'=>'require|number'
    ];
    protected $message=[
        'video_name.require'=>"请填写视频名称",
        'video_sort.require'=>"请填写视频排序",
        'video_sort.number'=>'视频排序必须为数字',
        'video_url.require'=>'请上传视频资源',
        'video_url.url'=>'视频资源必须为网址',
        'video_pro_id.require'=>'课程id为空',
    ];
}